package com.liujit.bms.admin.domain.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.liujit.common.domain.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description 博客文章
 * @Author liujun
 * @Date 2021-07-03 14:54:49
 */
@Data
@ApiModel(value = "BlogArticle", description = "博客文章")
@TableName(value = "blog_article")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class BlogArticle extends BaseModel {

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面图片")
    private String coverImage;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "内容-html")
    private String contentRender;

    @ApiModelProperty(value = "静态地址")
    private String staticPath;

    @ApiModelProperty(value = "阅读数")
    private Integer readNum;

    @ApiModelProperty(value = "评论数")
    private Integer commentNum;

    @ApiModelProperty(value = "收藏数")
    private Integer likeNum;

    @ApiModelProperty(value = "是否公开：1、是。0、否。")
    private Short isOpen;

    @ApiModelProperty(value = "是否置顶：1、是。0、否。")
    private Short isTop;

    @ApiModelProperty(value = "创建用户id")
    private Long createUserId;
}